SUBDIRS = .  xstdmod

xauxdir = $(libdir)/im/locale/zh_CN/unihan2
xaux_LTLIBRARIES = xaux_xim.la

INCLUDES = 							\
	$(WARN_CFLAGS)						\
	-I$(top_srcdir)/common					\
	-I$(top_srcdir)/include					\
	-I$(top_srcdir)/clipboard				\
	-I$(top_srcdir)/unisocket					\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
	-DUNIHAN_DATA_DIR=\""$(pkgdatadir)"\"			\
	-DUNIHAN_XAUX_DIR=\""$(xauxdir)"\"	\
	-DBINDIR=\""$(bindir)"\"

xauxextdir = $(xauxdir)/XIM
xauxext_PROGRAMS = xaux_ext_status

xaux_xim_la_SOURCES = unihan_xaux_so.c
xaux_xim_la_LIBADD =		\
		../common/libxaux_common.la	\
		../clipboard/libclipboard.la

xaux_xim_la_LDFLAGS = -module -avoid-version

xaux_ext_status_SOURCES =	\
	xaux_ext_status.c	\
	engine.c		\
	setting.c		\
	HM.c			\
	server.c		\
	ime.c			\
	imm.c			\
	XWindow.c

xaux_ext_status_CFLAGS = $(XAUX_STATUS_CFLAGS)
xaux_ext_status_LDADD = ../common/libxaux_common.la \
			../common/libxaux_ext.la \
			$(XAUX_STATUS_LIBS)

#if HAVE_LIBPANEL_APPLET
#SOCKET_GNOME1 = unihan-socket-gnome1
#endif

#if MAKE_GNOME2_SOCKET
#SOCKET_GNOME2 = unihan-socket-gnome2
#endif

#bin_PROGRAMS = $(SOCKET_GNOME1)
#libexec_PROGRAMS = $(SOCKET_GNOME2)

#unihan_socket_gnome1_SOURCES = socket_gnome1.c
#unihan_socket_gnome1_CFLAGS = $(LIBPANEL_APPLET_CFLAGS)
#unihan_socket_gnome1_LDFLAGS = $(LIBPANEL_APPLET_LIBS)

#unihan_socket_gnome2_SOURCES = socket_gnome2.c
#unihan_socket_gnome2_CFLAGS = $(XAUX_SOCKET_GNOME2_CFLAGS)
#unihan_socket_gnome2_LDFLAGS = $(XAUX_SOCKET_GNOME2_LIBS)
